package com.bgs.feign;
import com.bgs.common.R;
import com.bgs.pojo.vo.OneBeforUserAndStore;
import com.bgs.pojo.Store;
import com.bgs.pojo.vo.ZeroToReportAndOrderDetail;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@FeignClient("service-before")
public interface ZeroFeign {
    //查询用户  赋值给 封装类举报+商品
    //查询种类  赋值给 封装类举报+商品
    //查询店铺  赋值给 封装类举报+商品
    @PostMapping(value = "before/bgs/store/zeroGetStoreToZeroToReportAndOrderDetail")
    public R zeroGetStoreToZeroToReportAndOrderDetail(@RequestBody List<ZeroToReportAndOrderDetail> zeroToReportAndOrderDetail);

    @GetMapping(value = "/before/bgs/store/FourStoreId")
    public R FourStoreId(@RequestParam int id);

    //根据店铺id查询店铺
    @GetMapping("before/bgs/OneBeforUserAndStore/OneGetBeforUserId/{storeId}")
    public OneBeforUserAndStore OneGetBeforUserId(@PathVariable("storeId") Integer storeId);

    @GetMapping("before/bgs/store/FourStore")
    public List<Store> FourStore();

}
